﻿using System.Configuration;

namespace MvcWechat.Common
{
    public class ConfigSettings : ConfigurationSection
    {

        //web wap 页面 相关
        [ConfigurationProperty("ThemesColor")]
        public string ThemesColor
        {
            get { return this["ThemesColor"].ToString(); }
            set { this["ThemesColor"] = value; }
        }
        [ConfigurationProperty("Menus")]
        public string Menus
        {
            get { return this["Menus"].ToString(); }
            set { this["Menus"] = value; }
        }
        [ConfigurationProperty("ThemesStyle")]
        public string ThemesStyle
        {
            get { return this["ThemesStyle"].ToString(); }
            set { this["ThemesStyle"] = value; }
        }
        [ConfigurationProperty("Language")]
        public string Language
        {
            get { return this["Language"].ToString(); }
            set { this["Language"] = value; }
        }
        //数据来源url
        [ConfigurationProperty("PublicParentUrl")]
        public string PublicParentUrl
        {
            get { return this["PublicParentUrl"].ToString(); }
            set { this["PublicParentUrl"] = value; }
        } 
        //是否有app
        [ConfigurationProperty("HasApp")]
        public string HasApp
        {
            get { return this["HasApp"].ToString(); }
            set { this["HasApp"] = value; }
        }


        //微信公众平台 官方相关 
        [ConfigurationProperty("AppIDByWX")]
        public string AppIDByWX
        {
            get { return this["AppIDByWX"].ToString(); }
            set { this["AppIDByWX"] = value; }
        }

        [ConfigurationProperty("AppSecretByWX")]
        public string AppSecretByWX
        {
            get { return this["AppSecretByWX"].ToString(); }
            set { this["AppSecretByWX"] = value; }
        }
        
        [ConfigurationProperty("Domain")]
        public string Domain
        {
            get { return this["Domain"].ToString(); }
            set { this["Domain"] = value; }
        }

        [ConfigurationProperty("Token")]
        public string Token
        {
            get { return this["Token"].ToString(); }
            set { this["Token"] = value; }
        }

        [ConfigurationProperty("EncodingAESKey")]
        public string EncodingAESKey
        {
            get { return this["EncodingAESKey"].ToString(); }
            set { this["EncodingAESKey"] = value; }
        }

        [ConfigurationProperty("OauthScope")]
        public string OauthScope
        {
            get { return this["OauthScope"].ToString(); }
            set { this["OauthScope"] = value; }
        }

        [ConfigurationProperty("OpenJSSDK")]
        public string OpenJSSDK
        {
            get { return this["OautOpenJSSDKhScope"].ToString(); }
            set { this["OpenJSSDK"] = value; }
        }

        [ConfigurationProperty("IsUseCustomerMenu")]
        public string IsUseCustomerMenu
        {
            get { return this["IsUseCustomerMenu"].ToString(); }
            set { this["IsUseCustomerMenu"] = value; }
        }
        //注：关注后显示的推送信息，应该放入数据库中，暂时先用配置方式&&&&&&&&&&&&&&&&&&&&&&&&&&
        [ConfigurationProperty("wntitle")]
        public string wntitle
        {
            get { return this["wntitle"].ToString(); }
            set { this["wntitle"] = value; }
        }
        
        [ConfigurationProperty("wndescription")]
        public string wndescription
        {
            get { return this["wndescription"].ToString(); }
            set { this["wndescription"] = value; }
        }

        [ConfigurationProperty("wnurl")]
        public string wnurl
        {
            get { return this["wndeswnurlcription"].ToString(); }
            set { this["wnurl"] = value; }
        }

        [ConfigurationProperty("picurl")]
        public string picurl
        {
            get { return this["picurl"].ToString(); }
            set { this["picurl"] = value; }
        }
        


        //微信登录，在开放平台，网站应用里面设置 
        [ConfigurationProperty("AppIDByWechatLogin")]
        public string AppIDByWechatLogin
        {
            get { return this["AppIDByWechatLogin"].ToString(); }
            set { this["AppIDByWechatLogin"] = value; }
        }

        [ConfigurationProperty("AppSecretByWechatLogin")]
        public string AppSecretByWechatLogin
        {
            get { return this["AppSecretByWechatLogin"].ToString(); }
            set { this["AppSecretByWechatLogin"] = value; }
        }
        



        //小程序相关

        [ConfigurationProperty("AppIDByXcx")]
        public string AppIDByXcx
        {
            get { return this["AppIDByXcx"].ToString(); }
            set { this["AppIDByXcx"] = value; }
        }

        [ConfigurationProperty("AppSecretByXcx")]
        public string AppSecretByXcx
        {
            get { return this["AppSecretByXcx"].ToString(); }
            set { this["AppSecretByXcx"] = value; }
        }

        [ConfigurationProperty("XcxName")]
        public string XcxName
        {
            get { return this["XcxName"].ToString(); }
            set { this["XcxName"] = value; }
        }

        /// <summary>
        /// 该供应商的系统对应一级零售或一级批发的token
        /// </summary>
        [ConfigurationProperty("ParentKey")]
        public string ParentKey
        {
            get { return this["ParentKey"].ToString(); }
            set { this["ParentKey"] = value; }
        }
        /// <summary>
        /// 下级系统标记 2LSto1LS   表示  2级零售版本，它的数据来源是一级零售， 2PFto1LS  表示 2级批发版本，它的数据来源是一级零售
        /// </summary>
        [ConfigurationProperty("ErJiMark")]
        public string ErJiMark
        {
            get { return this["ErJiMark"].ToString(); }
            set { this["ErJiMark"] = value; }
        }
    }
}